var obj = {
  name: '张智琦',
  age: 18
}

var json = JSON.stringify(obj)

console.log(json)
